Yinghua Wang [Wed, 11 Aug 2010 14:42:48 +0000 (22:42 +0800)]
Update Simplified Chinese UI translation.
Yinghua Wang [Wed, 11 Aug 2010 14:37:13 +0000 (22:37 +0800)]
Update Simplified Chinese property nicks translation.
Benjamin Otte [Wed, 11 Aug 2010 03:12:49 +0000 (05:12 +0200)]
docs: Some style fixes to the migration guide
Most importantly, I decided to not capitalize "cairo".
Matthias Clasen [Wed, 11 Aug 2010 01:21:01 +0000 (21:21 -0400)]
Beef up the migration guide
This includes a first cut at documenting the rendering cleanup changes
and the region removal.
Benjamin Otte [Wed, 11 Aug 2010 00:30:29 +0000 (02:30 +0200)]
dnd: Remove default_icon_pixmap variable and friends
The functions to set them were gone already, this is just cleanup
Kristian Rietveld [Sun, 8 Aug 2010 16:22:51 +0000 (18:22 +0200)]
quartz: Misc. fixes for getting offscreen windows to work
Mainly fixes to properly differentiate between toplevel and offscreen
windows, since these sometimes need different treatment. Furthermore,
usage of gdk_window_get_effective_foo() instead of gdk_window_get_foo()
where applicable.
Kristian Rietveld [Sun, 8 Aug 2010 16:17:29 +0000 (18:17 +0200)]
Invalidate cairo surface if resizing is not supported for target
While X11 surfaces can be resized, this is not the case for Quartz
surfaces. Instead of resizing we will invalidate the surface instead.
By giving _gdk_windowing_set_cairo_surface_size() a boolean return
value, we can signal back whether or not resizing was possible. If not
possible, we invalidate the surface.
Kristian Rietveld [Sun, 8 Aug 2010 16:02:04 +0000 (18:02 +0200)]
quartz: Convert default background drawing to cairo
Includes some untested (read: uncompiled) simplifications from Benjamin
Otte.
Benjamin Otte [Sat, 7 Aug 2010 00:18:06 +0000 (02:18 +0200)]
style: Use _gtk_pango_fill_layout()
Benjamin Otte [Sat, 7 Aug 2010 00:14:10 +0000 (02:14 +0200)]
style: Apply same matrix conversion as gdk_draw_layout() did
This is only necessary for GtkLabel with an angle set as no other widget
rotates text.
Note that the label code does not need these adjustments as those paths
are only taken when the label is not rotated.
Benjamin Otte [Fri, 6 Aug 2010 21:27:09 +0000 (23:27 +0200)]
gdk: Remove data consructors for GdkPixmap
That is all of the gdk_pixmap/bitmap_create_from_* constructors.
Benjamin Otte [Fri, 6 Aug 2010 20:41:21 +0000 (22:41 +0200)]
x11: Create empty cursor without old functions
In particular, clear the bitmap manually instead of using
create_from_data.
Benjamin Otte [Fri, 6 Aug 2010 20:37:34 +0000 (22:37 +0200)]
testgtk: Use Cairo to load XBM image
This should really use GdkPixbuf, but apparently we can't load XBM
images. And I'm too lazy to convert it.
Benjamin Otte [Fri, 6 Aug 2010 20:28:09 +0000 (22:28 +0200)]
testgtk: Use Pixbufs in the shapes example
Benjamin Otte [Fri, 6 Aug 2010 20:12:24 +0000 (22:12 +0200)]
testgtk: Rename pixmap => pixbuf in various places
Now that we use Pixbufs for the tests instead of Pixmaps, we should name
the tests like that.
Benjamin Otte [Fri, 6 Aug 2010 20:09:08 +0000 (22:09 +0200)]
testgtk: Use pixbufs instead of pixmaps
This is for creating a GtkImage with an icon.
Benjamin Otte [Fri, 6 Aug 2010 19:54:16 +0000 (21:54 +0200)]
testgtk: Make image test not use Pixmaps, but Pixbufs
Benjamin Otte [Fri, 6 Aug 2010 18:37:48 +0000 (20:37 +0200)]
testgtk: Fix types and get rid of casting
Benjamin Otte [Fri, 6 Aug 2010 18:33:57 +0000 (20:33 +0200)]
testdnd: Convert to use pixbufs as icons
Using Pixmaps is outdated.
Benjamin Otte [Fri, 6 Aug 2010 18:11:45 +0000 (20:11 +0200)]
x11: Make fallback pixbuf-cursor code not use old constructors
These bitmap constructors are about to die. The replacement is painting
with Cairo image surfaces and that's what we do here.
Benjamin Otte [Fri, 6 Aug 2010 16:03:18 +0000 (18:03 +0200)]
colorsel: Create cursor image using Cairo
Benjamin Otte [Fri, 6 Aug 2010 14:02:24 +0000 (16:02 +0200)]
style: Don't use gdk_pixmap_create_from_xpm
Instead, do what that code did manually.
Kristian Høgsberg [Thu, 5 Aug 2010 14:10:45 +0000 (10:10 -0400)]
gdk: Drop Xrender configure.ac check
GTK+ no longer depends on the render extension!
Benjamin Otte [Fri, 6 Aug 2010 02:36:17 +0000 (04:36 +0200)]
x11: Remove display_x11->have_render
Also remove setters and getters for the variable and the GdkTristate
enum, as it's the only place where it was used.
Benjamin Otte [Fri, 6 Aug 2010 02:23:34 +0000 (04:23 +0200)]
gdk-xft: Don't call render about the subpixel order
Instead assume that the root window property is working properly. This
removes the last real Xrender call from GTK.
Kristian Høgsberg [Thu, 5 Aug 2010 14:10:45 +0000 (10:10 -0400)]
gdk: Remove picture pointer from X11 drawable
It's not used anymore
Benjamin Otte [Thu, 5 Aug 2010 00:26:59 +0000 (02:26 +0200)]
gdk: Don't infinite loop when flushing moves
Spotted by Kristian Rietvield. Fixes testoffscreen test.
Matthias Clasen [Wed, 4 Aug 2010 22:43:53 +0000 (18:43 -0400)]
generic damage generation for offscreen windows
Generating damage from gdk drawing api doesn't help for cairo rendering
...and the gdk drawing api is gone anyway. Bug 621571
Matthias Clasen [Wed, 4 Aug 2010 14:33:01 +0000 (10:33 -0400)]
Cleanup gdk_pixbuf_render_pixmap_and_mask_for_colormap()
Benjamin Otte [Sat, 31 Jul 2010 10:47:38 +0000 (12:47 +0200)]
API: remove gdk_colormap_query_color
Benjamin Otte [Sat, 31 Jul 2010 10:24:03 +0000 (12:24 +0200)]
style: Do not allocate colors anymore
Benjamin Otte [Sat, 31 Jul 2010 10:00:45 +0000 (12:00 +0200)]
gtkbuilder: Do not allocate colors when parsing GtkBuilder files
Benjamin Otte [Sat, 31 Jul 2010 09:27:34 +0000 (11:27 +0200)]
textview: remove GtkTextAttributes (un)realize code
It was unused (apart from a few assertion that indeed it was unused).
Benjamin Otte [Sat, 31 Jul 2010 09:20:46 +0000 (11:20 +0200)]
gdk: Don't require allocating window background colors anymore
X!! allocates the colors itself now.
Kristian Rietveld [Thu, 29 Jul 2010 12:20:32 +0000 (14:20 +0200)]
Fix compile warnings
Kristian Rietveld [Thu, 29 Jul 2010 12:15:41 +0000 (14:15 +0200)]
Add call to cairo_destroy() to gtk_text_layout_draw()
Kristian Rietveld [Tue, 27 Jul 2010 15:46:51 +0000 (17:46 +0200)]
Add missing calls to cairo_destroy()
Kristian Rietveld [Sat, 24 Jul 2010 08:52:37 +0000 (10:52 +0200)]
quartz: Make backend compile again
Kristian Rietveld [Sat, 24 Jul 2010 08:52:10 +0000 (10:52 +0200)]
quartz: Fix up _gdk_quartz_window_translate
Benjamin Otte [Thu, 22 Jul 2010 01:55:27 +0000 (03:55 +0200)]
API: remove GdkGC
XXX: Some traces in the win32 code are left. I suppose they'd best be
replaced using Cairo.
Benjamin Otte [Sat, 31 Jul 2010 12:01:49 +0000 (14:01 +0200)]
calendar: Remove unused GdkGC members
Benjamin Otte [Thu, 22 Jul 2010 01:25:11 +0000 (03:25 +0200)]
API: remove begin/end_direct_draw functions
They're not needed without GdkGCs.
FIXME: This breaks the win32 XP theme. Someone gotta fix it.
Benjamin Otte [Thu, 22 Jul 2010 00:55:26 +0000 (02:55 +0200)]
API: Remove gtk_gc_get() and gtk_gc_release()
With this change, GTK does not use GdkGC anymore.
Benjamin Otte [Thu, 22 Jul 2010 00:55:12 +0000 (02:55 +0200)]
API: Remove GC members from GtkStyle
Benjamin Otte [Thu, 22 Jul 2010 00:30:08 +0000 (02:30 +0200)]
textview: Replace GdkGC * argument with gpointer
The argument is unused.
That's also the reason why we can pass NULL instead of the real GC in
the caller.
Benjamin Otte [Thu, 22 Jul 2010 00:26:05 +0000 (02:26 +0200)]
gdk: Move scratch GC handling to X11
... and implement it directly instead of using GdkGC, as GdkGC is about
to be deleted, but we need this code.
Benjamin Otte [Thu, 22 Jul 2010 00:23:54 +0000 (02:23 +0200)]
x11: Remove unused code
These are function definitions and leftover variabl;es that weren't in
use for a while.
Benjamin Otte [Wed, 21 Jul 2010 23:56:00 +0000 (01:56 +0200)]
API: remove GdkPangoRenderer
Also removes the pango attributes for stipple, emboss and emboss color
Benjamin Otte [Wed, 21 Jul 2010 23:17:01 +0000 (01:17 +0200)]
textview: Make the PangoRenderer use Cairo exclusively
No more gdkpango usage, no more GdkGC required, yay!
Benjamin Otte [Wed, 21 Jul 2010 19:13:23 +0000 (21:13 +0200)]
gdk: remove get_composite_drawable vfunc
The vfunc is not used anymore.
Benjamin Otte [Wed, 21 Jul 2010 19:02:35 +0000 (21:02 +0200)]
API: remove gdk_draw_drawable()
Benjamin Otte [Wed, 21 Jul 2010 18:45:21 +0000 (20:45 +0200)]
quartz: Do repeated fill with Cairo
Some things are so easy with Cairo...
XXX: I did not compile this, this is just proof of concept.
Benjamin Otte [Wed, 21 Jul 2010 18:37:33 +0000 (20:37 +0200)]
gdk: Make window moves a custom vfunc
The window move code needs special attention for multiple reasons:
- invalid areas for expose events need to be modified
- self-copy is not supported by Cairo
- in X11, copying from an overlapped Window might cause unexposed areas
to be copied in, spo expose events for those need to be generated.
This was all special cased in various parts of the code. By making it an
explicit vfunc, we can work around it.
Benjamin Otte [Wed, 21 Jul 2010 12:54:44 +0000 (14:54 +0200)]
API: remove gdk_draw_layout_*()
Benjamin Otte [Wed, 21 Jul 2010 12:23:22 +0000 (14:23 +0200)]
label: Draw all text using PangoCairo
This includes the addition of a "small" helper function,
_gtk_pango_fill_layout() that ignores color information. This
functionality is not available inside Pango and until that happens, we
need this fix. The bug is filed at:
https://bugzilla.gnome.org/show_bug.cgi?id=624917
Benjamin Otte [Wed, 21 Jul 2010 01:16:47 +0000 (03:16 +0200)]
API: Remove GtkTextTag's stipple properties
They seem pretty much unused and the only reason why GtkTextView uses a
GdkPangoRenderer and not a PangoCairoRenderer.
Benjamin Otte [Wed, 21 Jul 2010 01:16:29 +0000 (03:16 +0200)]
gtk-demo: Adapt textview example for stipple removal
Benjamin Otte [Tue, 20 Jul 2010 00:25:09 +0000 (02:25 +0200)]
gdk: Remove _gdk_drawable_get_scratch_gc()
The function is unused now.
Benjamin Otte [Tue, 20 Jul 2010 00:19:29 +0000 (02:19 +0200)]
gdk: Draw redirected windows using Cairo
Benjamin Otte [Tue, 20 Jul 2010 00:02:26 +0000 (02:02 +0200)]
gdk: Refactor redirection code
This will make future patches easier
Benjamin Otte [Mon, 19 Jul 2010 23:21:38 +0000 (01:21 +0200)]
gdk: Simplify code
Use new Cairo APIs to make the code simpler.
Benjamin Otte [Mon, 19 Jul 2010 22:56:46 +0000 (00:56 +0200)]
gdk: Remove excess variables
Benjamin Otte [Mon, 19 Jul 2010 21:49:09 +0000 (23:49 +0200)]
gdk: Do end_implicit_paint copy with Cairo
Benjamin Otte [Mon, 19 Jul 2010 21:31:24 +0000 (23:31 +0200)]
gdk: Implement gdk_window_get_source_drawable() using Cairo
Do we have a test case for this?
Benjamin Otte [Mon, 19 Jul 2010 11:29:47 +0000 (13:29 +0200)]
gdk: Implement end_implicit_paint() with Cairo
Benjamin Otte [Sat, 17 Jul 2010 02:50:49 +0000 (04:50 +0200)]
API: remove gdk_draw_rectangle()
Benjamin Otte [Thu, 15 Jul 2010 17:23:27 +0000 (19:23 +0200)]
style: Replace last gdk_draw_rectangle() with Cairo
Benjamin Otte [Thu, 15 Jul 2010 16:07:42 +0000 (18:07 +0200)]
API: remove gdk_draw_point(s)
Benjamin Otte [Thu, 15 Jul 2010 15:58:50 +0000 (17:58 +0200)]
API: remove gdk_draw_{line,lines,segments}
Those were the 3 intermixed line drawing calls.
Benjamin Otte [Thu, 15 Jul 2010 13:08:56 +0000 (15:08 +0200)]
testgtk: Remove image from drawable test
The test only tested old APIs.
Benjamin Otte [Wed, 14 Jul 2010 22:55:26 +0000 (00:55 +0200)]
style: replace draw_frame_gap with Cairo calls
Benjamin Otte [Wed, 14 Jul 2010 22:35:15 +0000 (00:35 +0200)]
style: Replace draw_diamond vfunc with Cairo calls
Benjamin Otte [Wed, 14 Jul 2010 21:12:48 +0000 (23:12 +0200)]
tests: remove "draw drawable" button from testwindows test
draw_drawable is gone soon. And testing the proper functioning of
drawing calls is Cairo's job anyway.
Benjamin Otte [Wed, 14 Jul 2010 17:23:45 +0000 (19:23 +0200)]
API: remove gdk_draw_polygon()
Benjamin Otte [Wed, 14 Jul 2010 17:13:59 +0000 (19:13 +0200)]
API: remove gtk_paint_polygon()
Almost noone uses it in real applications and it's broken in most theme
engines.
Benjamin Otte [Wed, 14 Jul 2010 15:59:41 +0000 (17:59 +0200)]
iconview: Remove debug drawing code
It uses APIs I'm about to deprecate.
Benjamin Otte [Wed, 14 Jul 2010 15:45:26 +0000 (17:45 +0200)]
style: apply cleanup patch from bug 576988
Ideally this patch would be split up into chunks, but the git branch it
came from doesn't exist anymore. Only this patch is left in a bug
report.
It it's adapted to use accessors and contains some fixes that were
spotted while using the patch.
https://bugzilla.gnome.org/show_bug.cgi?id=576988
Benjamin Otte [Wed, 14 Jul 2010 14:03:51 +0000 (16:03 +0200)]
API: remove gdk_draw_glyphs() and gdk_draw_glyphs_transformed()
Benjamin Otte [Wed, 14 Jul 2010 12:37:23 +0000 (14:37 +0200)]
API: remove gdk_draw_trapezoids() and GdkTrapezoid struct
Benjamin Otte [Wed, 14 Jul 2010 12:07:21 +0000 (14:07 +0200)]
API: remove gdk_draw_arc()
Benjamin Otte [Wed, 14 Jul 2010 12:01:01 +0000 (14:01 +0200)]
gdk: Remove testgdk code
The file wasn't build anyway and it's using all the APIs that are
getting removed.
Benjamin Otte [Tue, 13 Jul 2010 22:22:45 +0000 (00:22 +0200)]
API: remove GdkImage
It was unused and buggy.
Benjamin Otte [Tue, 13 Jul 2010 21:28:20 +0000 (23:28 +0200)]
API: remove gdk_drawable_copy_to_image()
Benjamin Otte [Tue, 13 Jul 2010 21:10:33 +0000 (23:10 +0200)]
API: remove gdk_drawable_get_image()
Benjamin Otte [Tue, 13 Jul 2010 20:50:25 +0000 (22:50 +0200)]
API: remove gdk_pixbuf_get_from_image()
Benjamin Otte [Tue, 13 Jul 2010 20:12:50 +0000 (22:12 +0200)]
colorsel: Use gdk_pixbuf_get_from_drawable()
Instead of fiddling with GdkImage directly.
Benjamin Otte [Tue, 13 Jul 2010 19:39:16 +0000 (21:39 +0200)]
Implement gdk_pixbuf_get_from_drawable() with Cairo
Use gdk_pixbuf_get_from_surface() instead of
gdk_pixbuf_get_from_image().
Benjamin Otte [Tue, 13 Jul 2010 17:44:41 +0000 (19:44 +0200)]
API: Add gdk_pixbuf_get_from_surface()
New API to copy any cairo surface into a pixbuf.
Benjamin Otte [Tue, 13 Jul 2010 16:22:51 +0000 (18:22 +0200)]
API: remove gdk_draw_image()
Benjamin Otte [Tue, 13 Jul 2010 15:50:41 +0000 (17:50 +0200)]
API: Get rid of GdkRGB
Benjamin Otte [Tue, 13 Jul 2010 15:49:33 +0000 (17:49 +0200)]
demos: Convert testpixbuf-save to Cairo
Benjamin Otte [Tue, 13 Jul 2010 15:11:22 +0000 (17:11 +0200)]
demos: Remove testpixbuf
Another test mainly utilizing inline pixbufs and GdkRGB, both of which
are kinda outdated.
Benjamin Otte [Tue, 13 Jul 2010 15:08:33 +0000 (17:08 +0200)]
demos: remove testpixbuf-drawable
It only tested GdkRGB, and we're about to kill that.
Benjamin Otte [Tue, 13 Jul 2010 13:54:04 +0000 (15:54 +0200)]
testgtk: Remove alpha drawing test
We use Cairo for that these days.
Benjamin Otte [Tue, 13 Jul 2010 13:52:56 +0000 (15:52 +0200)]
Replace gdk_rgb_find_color()
Use gdk_colormap_alloc_color() instead.
Benjamin Otte [Tue, 13 Jul 2010 00:53:51 +0000 (02:53 +0200)]
debug: remove GdkRGB debuggability
GdkRGB is on its way out, so there's no need to have a debugging
category for it.
Benjamin Otte [Tue, 13 Jul 2010 00:48:08 +0000 (02:48 +0200)]
gdk: Remove unused gdkrgb.h includes
Benjamin Otte [Tue, 13 Jul 2010 00:40:12 +0000 (02:40 +0200)]
API: remove gdk_screen_get_rgb_colormap/visual()
People want to use gdk_screen_get_default_colormap/visual().
Also, GdkRGB is about to die.
Benjamin Otte [Tue, 13 Jul 2010 00:25:41 +0000 (02:25 +0200)]
tests: remove testrgb test
This is in preparation for the GdkRGB removal
Benjamin Otte [Mon, 12 Jul 2010 15:34:19 +0000 (17:34 +0200)]
image: remove GdkImage as a possible image type
GdkImage is about to be deprecated.